package com.fruit.utils;

import java.util.Date;

/**
 * Description:
 *  合同模版类
 */
public class ContractTemplateUtils {

    private static String CONTRACT_TEMPLATE = "甲方：%s;" +
            "乙方：%s;" +
            "水果类型：%s;" +
            "水果数量：%s千克;" +
            "签订日期：%s";

    public static String getContract(String weight,String fruitName,String username){
        return String.format(CONTRACT_TEMPLATE,username,"水果基地冻库系统",fruitName,weight,DateUtil.format(new Date(),"yyyy-MM-dd"));
    }
}
